remove deprecated loss struct member
authorØyvind Kolås <pippin@gimp.org>
Mon, 14 Nov 2016 21:09:00 +0000 (22:09 +0100)
committerØyvind Kolås <pippin@gimp.org>
Mon, 14 Nov 2016 21:15:46 +0000 (22:15 +0100)
babl/babl-fish-path.c
babl/babl-fish.h
babl/babl.c

index c4c447f1fa1bc14cbe460011f719f10ac05ab1ae..e7973a26e7c6bbd8b8bdd5699502de7f9c29c322 100644 (file)
@@ -296,7 +296,6 @@ babl_fish_path (const Babl *source,
   babl->fish.pixels               = 0;
   babl->fish.error                = BABL_MAX_COST_VALUE;
   babl->fish_path.cost            = BABL_MAX_COST_VALUE;
-  babl->fish_path.loss            = BABL_MAX_COST_VALUE;
   babl->fish_path.conversion_list = babl_list_init_with_size (BABL_HARD_MAX_PATH_LENGTH);
 
   {
index 159232960659a129ba4f89902f7d0ce0e62f153c..54d670acce6eafe2c2b5464ce5c8683ff96e952e 100644 (file)
@@ -66,7 +66,6 @@ typedef struct
 {
   BablFish         fish;
   double           cost;   /* number of  ticks *10 + chain_length */
-  double           loss;   /* error introduced */
   BablList         *conversion_list;
 } BablFishPath;
 
index 22c104cf6d4c0f06705e56aeb2bb37cc20ffe93d..7209c8fd81f9a719c860b50bf668876b8a9876be 100644 (file)
@@ -151,9 +151,6 @@ babl_fish_serialize (Babl *fish, char *dest, int n)
         snprintf (d, n, " cost=%f", fish->fish_path.cost);
         n -= strlen (d);d += strlen (d);
 
-        snprintf (d, n, " loss=%f", fish->fish_path.loss);
-        n -= strlen (d);d += strlen (d);
-
         snprintf (d, n, "\n");
         n -= strlen (d);d += strlen (d);
 
@@ -343,10 +340,6 @@ static void babl_init_db (const char *path)
               {
                 babl->fish_path.cost = strtod (token2 + 5, NULL);
               }
-              else if (!strncmp (token2, "loss=", 5))
-              {
-                babl->fish_path.loss = strtod (token2 + 5, NULL);
-              }
               else if (!strncmp (token2, "pixels=", 7))
               {
                 babl->fish.pixels = strtol (token2 + 7, NULL, 10);